package com.gym.service.impl;

import com.gym.dao.PurchaseDao;
import com.gym.pojo.Purchase;
import com.gym.service.PurchaseService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class PurchaseServiceImpl implements PurchaseService {
   @Resource
   public PurchaseDao purchaseDao;
    @Override
    public boolean insertsm(Purchase purchase) {
        return purchaseDao.insertsm(purchase)>0;
    }

    @Override
    public boolean deletethz(int goodsId) {
        return purchaseDao.deletethz(goodsId)>0;
    }
}
